package com.bringway.p2p.service.impl;

import java.util.List;
import java.util.Map;

import net.sf.json.JSONObject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bringway.p2p.dao.BankcardDao;
import com.bringway.p2p.service.BankcardService;


/**
 * 
 * @author zhai
 * @version 创建时间：2015年12月14日 上午9:34:42
 * @功能：抽奖结果页面
 */

@Service
@Transactional
public class BankcardServiceImpl   implements BankcardService {

	@Autowired
	private BankcardDao bankcardDao;
	

	@Override
	public List querybakcard(JSONObject params) {
		// TODO Auto-generated method stub
		return bankcardDao.querybankcard(params);
	}

	@Override
	public int getbankcardCount(JSONObject params) {
		// TODO Auto-generated method stub
		return bankcardDao.getbankcardCount(params);
	}

	@Override
	public boolean addBankcard(JSONObject parms) {
		// TODO Auto-generated method stub
		return bankcardDao.addBnakcard(parms)>0;
	}

	@Override
	public boolean queryBankcardid(JSONObject params) {
		// TODO Auto-generated method stub
		return bankcardDao.querybankcardid(params)>0;
	}

	@Override
	public List queryHdbJrkBankcardList(List hdbJkrList, JSONObject params) {
		return bankcardDao.queryHdbJrkBankcardList(hdbJkrList, params);
	}

	@Override
	public List queryHdhJkrList(JSONObject params) {
		return bankcardDao.queryHdhJkrList(params);
	}

	@Override
	public int getHdbJrkBankcardCount(List hdbJkrList, JSONObject params) {
		return bankcardDao.getHdbJrkBankcardCount(hdbJkrList,params);
	}

	@Override
	public Map getHdbJkrUserInfo(String userId, String queryType) {
		return bankcardDao.getHdbJkrUserInfo(userId, queryType);
	}

	@Override
	public Map queryBankcardInfo(JSONObject params) {
		return bankcardDao.queryBankcardInfo(params);
	}

	@Override
	public boolean delBankcardInfo(JSONObject params) {
		return bankcardDao.delBankcardInfo(params);
	}

	@Override
	public void saveBankcardBk(Map isExsitBankcardInfo) {
		bankcardDao.saveBankcardBk(isExsitBankcardInfo);
	}

	
}
